package es.capgemini.extjsplugin.core;

import java.io.File;
import java.util.List;

import es.capgemini.extjsplugin.ui.ExtendedField;

/**
 * Clase Base para generar paginas jsp
 * @author Lisandro Medrano
 *
 */
public class JSPGenerator {

	protected List<ExtendedField> camposIncluir;
	protected String web_base;
	protected String class_name;
	protected String FLOW_URL;
	protected String JSP_URL;

	public JSPGenerator() {
		super();
	}

	protected void creaDirectorios() {
		File dir_web = new File(web_base + "/flows/"+Utils.toLowerCamelCase(class_name));
	    dir_web.mkdirs();
	    FLOW_URL = dir_web.getAbsolutePath();
	    
	    dir_web = new File(web_base + "/jsp/"+Utils.toLowerCamelCase(class_name));
	    dir_web.mkdirs();
	    JSP_URL = dir_web.getAbsolutePath();
	}

}